<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>telegram-desktop</Name>
        <Homepage>https://desktop.telegram.org/</Homepage>
        <Packager>
            <Name>Safa Ariman</Name>
            <Email>safa@ariman.gen.tr</Email>
        </Packager>
        <License>GPLv3</License>
        <IsA>app:gui</IsA>
        <Icon>telegram</Icon>
        <Summary>Official Telegram Desktop client</Summary>
        <Description>Telegram is a messaging app with a focus on speed and security, it is super-fast, simple and free. You can use Telegram on all your devices at the same time — your messages sync seamlessly across any number of your phones, tablets or computers.</Description>
        <Archive sha1sum="7570eaf20aaf1e15b5e7d46fb3924d36856751fb" type="targz">https://github.com/telegramdesktop/tdesktop/releases/download/v4.7.1/tdesktop-4.7.1-full.tar.gz</Archive>

        <AdditionalFiles>
            <AdditionalFile target="fix-tgcalls-cstdint.patch" permission="0644">fix-tgcalls-cstdint.patch</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>ninja</Dependency>
            <Dependency>gtk3-devel</Dependency>
            <Dependency>rnnoise-devel</Dependency>
            <Dependency>qt6-base-devel</Dependency>
            <Dependency>xz-devel</Dependency>
            <Dependency>libvpx-devel</Dependency>
            <Dependency>libdbusmenu-qt-devel</Dependency>
            <Dependency>expected-devel</Dependency>
            <Dependency>ffmpeg-devel</Dependency>
            <Dependency>guidelines-support-library-devel</Dependency>
            <Dependency>hunspell-devel</Dependency>
            <Dependency>minizip-devel</Dependency>
            <Dependency>openal-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>range-v3-devel</Dependency>
            <Dependency>libopus-devel</Dependency>
            <Dependency>xxhash-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>pulseaudio-libs-devel</Dependency>
            <Dependency>protobuf-devel</Dependency>
            <Dependency>lz4-devel</Dependency>
            <!--Dependency>qt6-wayland-devel</Dependency>
	    <Dependency>kwayland-devel</Dependency-->
            <Dependency>libtg_owt-devel</Dependency>
            <Dependency>xcb-util-keysyms-devel</Dependency>
            <Dependency>jemalloc-devel</Dependency>
            <Dependency>webkit2gtk-devel</Dependency>
            <Dependency>glibmm-2.68-devel</Dependency>
            <Dependency>qt6-svg-devel</Dependency>
            <Dependency>qt6-5compat-devel</Dependency>
            <Dependency>llvm-clang-devel</Dependency>
            <Dependency>abseil-cpp-devel</Dependency>
            <Dependency>pipewire-devel</Dependency>
            <Dependency>kcoreaddons-devel</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch level="1">tdesktop.patch</Patch> -->
<!--             <Patch level="1">fix-tgcalls-cstdint.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>telegram-desktop</Name>
        <RuntimeDependencies>
            <Dependency>xz</Dependency>
            <Dependency>lz4</Dependency>
            <Dependency>gtk3</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libxcb</Dependency>
            <Dependency>ffmpeg</Dependency>
            <Dependency>openal</Dependency>
            <Dependency>xxhash</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libopus</Dependency>
            <Dependency>minizip</Dependency>
            <Dependency>hunspell</Dependency>
            <Dependency>libvpx</Dependency>
            <Dependency>qt6-base</Dependency>
            <Dependency>protobuf</Dependency>
            <Dependency>qt6-5compat</Dependency>
            <Dependency>libtg_owt</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>qt6-imageformats</Dependency>
            <Dependency>libdbusmenu-qt</Dependency>
            <Dependency>xcb-util-keysyms</Dependency>
            <Dependency>open-sans-fonts</Dependency>
            <Dependency>glibmm-2.68</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>libXtst</Dependency>
            <Dependency>qt6-svg</Dependency>
            <Dependency>rnnoise</Dependency>
            <Dependency>libXfixes</Dependency>
            <Dependency>libXrandr</Dependency>
            <Dependency>libsigc++3</Dependency>
            <Dependency>libXdamage</Dependency>
            <Dependency>libXcomposite</Dependency>
            <Dependency>jemalloc</Dependency>
            <Dependency>abseil-cpp</Dependency>
            <Dependency>pipewire</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share</Path>
        </Files>
    </Package>

    <History>
        <Update release="24">
            <Date>2023-03-21</Date>
            <Version>4.7.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="23">
            <Date>2023-01-13</Date>
            <Version>4.5.6</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="22">
            <Date>2023-01-03</Date>
            <Version>4.5.2</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="21">
            <Date>2023-01-01</Date>
            <Version>4.5.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="20">
            <Date>2022-12-08</Date>
            <Version>4.4.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="19">
            <Date>2022-11-25</Date>
            <Version>4.3.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="18">
            <Date>2022-11-08</Date>
            <Version>4.3.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="17">
            <Date>2022-11-05</Date>
            <Version>4.3.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="16">
            <Date>2022-09-19</Date>
            <Version>4.2.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="15">
            <Date>2022-08-18</Date>
            <Version>4.1.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="14">
            <Date>2022-08-15</Date>
            <Version>4.1.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="13">
            <Date>2022-08-05</Date>
            <Version>4.0.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="12">
            <Date>2022-06-29</Date>
            <Version>4.0.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="11">
            <Date>2022-04-22</Date>
            <Version>3.7.1</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="10">
            <Date>2022-03-18</Date>
            <Version>3.6.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="9">
            <Date>2022-01-09</Date>
            <Version>3.4.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="8">
            <Date>2021-12-10</Date>
            <Version>3.3.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2021-11-05</Date>
            <Version>3.2.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2021-10-09</Date>
            <Version>3.1.9</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2021-10-01</Date>
            <Version>3.1.5</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2021-02-01</Date>
            <Version>2.5.8</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2020-06-06</Date>
            <Version>2.1.10</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2020-04-10</Date>
            <Version>2.0.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2020-03-17</Date>
            <Version>1.9.21</Version>
            <Comment>First release</Comment>
            <Name>Safa Ariman</Name>
            <Email>safa@ariman.gen.tr</Email>
        </Update>
    </History>
</PISI>
